import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home'
import home2 from '@/pages/home2'

Vue.use(Router)

let routes = [
  {
    path: '/', //路由默认跳转
    redirect: 'home'
  },
  {
    name: 'home',
    path: '/home',
    component: home
  },
  {
    name: 'home2',
    path: '/home2',
    component: home2
  }
]

let router = new Router({ routes })

export default router
